package rs.pnv.pcc;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.net.MalformedURLException;
import java.util.Date;

import javax.xml.bind.UnmarshalException;

import rs.pnv.model.CardAuthenticationRequest;
import rs.pnv.model.PCCResponse;
import rs.pnv.util.WebServiceClient;
import rs.pnv.util.WebServiceClient.WebServiceType;

public class PccWebServiceTest {

	public static void main(String[] args) {
		try {

			Pcc pcc = WebServiceClient.createWebService(WebServiceType.PCC, Pcc.class);
			PCCResponse response = null;
			try {
				response = pcc.processAcquirerAut(new CardAuthenticationRequest("123456","333","Pera",new Date(), new BigDecimal(50), new BigInteger("1"), new Date()));
			} catch (Exception e) {
				
				System.out.println("Klijent uhvatio exception");
				//e.printStackTrace();
			}

			System.out.println(response);

		} catch (MalformedURLException e) {
			e.printStackTrace();
		}

	}

}
